package com.songcha.library_network.api

import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response

class BaseInterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {

        val original:Request=chain.request()
        val requestBuilder:Request.Builder=original.newBuilder()
            .addHeader("Content-Type","application/json")
            //.addHeader("X-Token","")
        val request=requestBuilder.build()
        return chain.proceed(request)

    }

}